/**
 * this class encapsulates the setter and scale method
 * for every square
 */
public class Square extends RegularPolygon implements IRectangle {

	/**
	 * a rectangle consists of one length-value.
	 * the length must be positiv.
	 */
	public Square(double s) {
		super(s, 4);
	}
	
	@Override
	public double area() {
		return (getS() * getS());
	}
	
	@Override
	public int edges() {
		return 4;
	}
}
